﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CardInChina.Bussiness.Frontend.Interface;
using System.Text;

namespace CardInChina.Web.Mvc.Controllers
{
    public class SearchController : CICBasicController
    {
        private GameBusinessService gbs = new GameBusinessService();
        private CardInfoBusinessService cibs = new CardInfoBusinessService();
        //
        // GET: /Search/
        public ActionResult Index(string searchKey)
        {
            ViewBag.SearchedGames = gbs.SearchGameByKeyword(searchKey);
            ViewBag.SearchKey = searchKey;
            ViewBag.SearchedCardInfoes = cibs.GetCardInfoesByKeyword(searchKey);
            return View();
        }

    }
}
